package com.spareparts.protocol;

import android.util.Log;
import cm.framework.protocol.BaseHttpRequest;
import cm.framework.protocol.BaseHttpResponse;

public class SearchRequest extends BaseHttpRequest {

	public SearchRequest(String... paramArray) {
		setMethod(GET);
		String urlString;
		urlString = ProtocolDef.ABSOLUTEURI + ProtocolDef.METHOD_SEARCH
				+ "&uid=" + paramArray[0] + "&region=" + paramArray[1]
				+ "&pointname=" + paramArray[2] + "&warehouse=" + paramArray[3]
				+ "&spare=" + paramArray[4]+ "&p=" + paramArray[5];
		Log.e("SearchRequest", urlString);
		setAbsoluteURI(urlString);
	}

	@Override
	public BaseHttpResponse createResponse() {
		return new SearchResponse();
	}

}
